Dashboard View
The Dashboard View widget enables you to embed one or more dashboards or a mashup of several charts, maps, and metrics into your application.
Embeddable Script
<!-- Tag -->
<qrvey-end-user settings="config"></qrvey-end-user>`
<!-- Config -->
<script>
var config = {
apiKey: "<API_KEY>",
domain: "<DOMAIN>",
userId: "<USER_ID>",
appId: "<APP_ID>"
};
</script>
<!-- Launcher -->
<script type="text/javascript" src="https://<WIDGETS_URL>/widgets-launcher/app.js"></script>
Configuration Object
Property | Value | Required |
---|---|---|
apiKey | String , Your organization’s unique API key required to access the Qrvey platform. | Required, if qvToken is not provided. |
qvToken | String , Encrypted token used for secure authentication. | Required, if apiKey is not provided. |
appId | String , ID of the Qrvey application that contains the asset you want to embed. | Required |
domain | String , The base URL of your Qrvey instance. | Required |
userId | String , ID of the Qrvey User that owns the application being embedded. Optional: You can alternately specify the user ID in a Qrvey session cookie. | Required, if userId is not included in a session cookie. |
dashboardId | String , ID of a specific dashboard to open to. If omitted, the widget will open to "browse all dashboards". | Optional |
groupList | Array<String> , Collection of IDs/names of the groups created in User Management. | Optional |
pageId | String , ID of a page to visualize. If configured, all auth processes are still required. | Optional |
clientId | String , Unique identifier for the tenant end user. Required for using the End User Personalization and Download Manager features. | Optional |
themeId | String , Theme ID to use in the component. For more details, please see Accessing a Theme Programmatically. | Optional |
userFilters | Array<Object> , Collection of custom filters that the system will apply to the visualized data. For more information, please see Working With Filters in Embedded Scenarios. | Optional |
fitPanelButton | Boolean , When false, hides the "fit to panel" button on charts within the dashboard. Default value is true. | Optional |
filterPanelDefaultView | String , Decides the default state of the side filter panel, if it’s been added to the view. It can be set to open or closed . The default value is closed . | Optional |
authenticatedSession.email | String , Specifies the email address to associate with the widget. If an address is not specified, exports are sent to the email address associated with the user ID. | Optional |
personalization | Object , Configures and/or overwrites the default personalization/customization settings. For more information, please see The Personalization Object below. | Optional |
styles | Object , Configure style options that can be used to override the default styles, allowing for while-labeling the widget. For details, please see The Styles Object below. | Optional |
customTokens | Object , Sets custom threshold values in Bullet and Dial charts. For more information, please see Using Custom Tokens. | Optional |
featurePermission | Object , Configures which features are available in the widget. For more details, please see The Feature Permission Object below. | Optional |
subscriptionsSettings | Object , Configures subscription details in the widget. For details, please see The Subscriptions Settings Object below. | Optional |
Feature Permission
The following table describes the properties of the featurePermission
object.
Property | Description | Required |
---|---|---|
liteVersion | Boolean , If true, hides all elements that are managed by feature permissions. Defaults to false. | Optional |
downloads | Object , Contains the download and export parameters. | Optional |
downloads.hideGeneralDownload | Boolean , If true, hides the download feature from the dashboard tool bar. Defaults to false. | Optional |
downloads.hideSchedule | Boolean , If true, hides the scheduling export option in the export modal. Defaults to false. | Optional |
filters | Object . Contains the filters object parameters. | Optional |
filters.global | Boolean , When true, hides creation points of global filters. Defaults to false. | Optional |
filters.page | Boolean , wWen true, hides creation points of page filters. Defaults to false. | Optional |
filters.tab | Boolean , When true, hides creation points of tab filters. Defaults to false. | Optional |
filters.chart | Boolean , When true, hides creation points of chart filters. Defaults to false. | Optional |
filters.filterPanel | Boolean , when true, hides the filter panel. Defaults to false. | Optional |
panels | Object . Contains the panels object parameters. | Optional |
panels.global | Object , Contains global panel settings. | Optional |
panels.global.hide_all | Boolean , When true, hides the entire panel menu. Defaults to false. | Optional |
panels.global.hide_edit_menu | Boolean , When true, hides the "edit chart" option. Defaults to false. | Optional |
panels.global.hide_duplicate_menu | Boolean , When true, hides the "duplicate chart" option. Defaults to false. | Optional |
panels.global.hide_downloads_menu | Boolean , When true, hides the "download" sub-menu option. Defaults to false. | Optional |
panels.global.hide_delete_menu | Boolean , When true, hides the "delete chart" option. Defaults to false. | Optional |
panels.global.hide_JPG | Boolean , When true, hides the "download JPG" option. Defaults to false. | Optional |
panels.global.hide_PDF | Boolean , When true, hides the "PDF download" option. Defaults to false. | Optional |
panels.global.hide_CSV | Boolean , When true, hides the "CSV download" option. Defaults to false. | Optional |
panels.global.hide_CSV_summary | Boolean , When true, hides the "CSV summary" option. Defaults to false. | Optional |
panels.metrics | Object , Contains metrics panel settings. | Optional |
panels.metrics.hide_edit_menu | Boolean , When true, hides the "edit chart" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_duplicate_menu | Boolean , When true, hides the "duplicate chart" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_downloads_menu | Boolean , When true, hides the "download" sub-menu option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_delete_menu | Boolean , When true, hides the "delete chart" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_JPG | Boolean , When true, hides the "download JPG" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_PDF | Boolean , When true, hides the "PDF download" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_CSV | Boolean , When true, hides the "CSV download" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_CSV_summary | Boolean , When true, hides the "CSV summary" option for metrics panels. Defaults to false. | Optional |
panels.metrics.hide_EXCEL | Boolean , When true, hides the "EXCEL download" option for metrics panels. Defaults to false. | Optional |
panels.summaries | Object , Contains summaries panel settings. | Optional |
panels.summaries.hide_edit_menu | Boolean , When true, hides the "edit chart" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_duplicate_menu | Boolean , When true, hides the "duplicate chart" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_downloads_menu | Boolean , When true, hides the "download" sub-menu option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_delete_menu | Boolean , When true, hides the "delete chart" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_JPG | Boolean , When true, hides the "download JPG" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_PDF | Boolean , When true, hides the "PDF download" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_CSV | Boolean , When true, hides the "CSV download" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_CSV_summary | Boolean , When true, hides the "CSV summary" option for summaries panels. Defaults to false. | Optional |
panels.summaries.hide_EXCEL | Boolean , When true, hides the "EXCEL download" option for summaries panels. Defaults to false. | Optional |
panels.charts | Object , Contains charts panel settings. | Optional |
panels.charts.hide_edit_menu | Boolean , When true, hides the "edit chart" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_duplicate_menu | Boolean , When true, hides the "duplicate chart" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_downloads_menu | Boolean , When true, hides the "download" sub-menu option for charts panels. Defaults to false. | Optional |
panels.charts.hide_delete_menu | Boolean , When true, hides the "delete chart" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_JPG | Boolean , When true, hides the "download JPG" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_PDF | Boolean , When true, hides the "PDF download" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_CSV | Boolean , When true, hides the "CSV download" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_CSV_summary | Boolean , When true, hides the "CSV summary" option for charts panels. Defaults to false. | Optional |
panels.charts.hide_EXCEL | Boolean , When true, hides the "EXCEL download" option for charts panels. Defaults to false. | Optional |
Tip: To hide all features, set the
liteVersion
property totrue
. For example:
const widgetConfig = {
domain: "DOMAIN",
appId: "APP_ID",
userId: "USER_ID",
featurePermission: {
liteVersion: true,
},
}
Tip: To hide most features, set the
liteVersion
property totrue
and list the exceptions you want to show to false. For example:
const widgetConfig = {
domain: "DOMAIN",
appId: "APP_ID",
userId: "USER_ID",
featurePermission: {
liteVersion: true,
userManagement:{
hideUserManagementTab: false
}
},
}
Subscriptions Settings
In the Dashboard View widget, you can enable end users to subscribe to a scheduled delivery of exported dashboards or specific charts. For the Subscriptions feature to work, you must appropriately set the clientId
property and pass it in when generating the qvToken
. The property’s value should represent a unique identifier for each end user. For more information on using subscriptions, see Subscribing to Exports.
Property | Description | Required |
---|---|---|
enable_subscriptions | Boolean , If false, disables the User Subscriptions alarm bell and subscriptions are not available to the end user within the widget. Defaults to true. | Optional |
emails | Array , Email addresses to deliver the exports to. Example: [ "email@jmail.com", "email2@jmail.com"] | Optional |
allow_editing_recipients | Boolean , Enables the end user to modify the list of recipients of the export. | Optional |
email_message | Object , JSON object to configure the email message. | Optional |
email_message.hide_add_subject | Boolean , Toggles visibility of the email's subject field. | Optional |
email_message.hide_add_message | Boolean , Toggles visibility of the message field. | Optional |
Personalization
Configures end-user personalization. In the Dashboard View widget, all authenticated users can personalize their view by default. You can use the personalization object to configure and override the personalization settings. End User Personalization feature relies on the user being authenticated and needs the clientId
property set for the logged-in user.
To turn personalization off for all users, set the enabled
property to false
. For example:
const widgetConfig = {
domain: "DOMAIN",
appId: "APP_ID",
userId: "USER_ID",
personalization: {
enabled: false,
},
}
The following table describes the properties of the personalization
object.
Property | Description | Required |
---|---|---|
enabled | Boolean , If false, disables personalization for end users and all of the properties in the personalization object. Defaults to true. | Optional |
add_filter | Boolean , If false, hides the “add filter” buttons and disables users from creating new filters from the filter modal, the filter panel, and filter interactivity page components. Defaults to true. | Optional |
edit_chart | Boolean , if false, disables authenticated users from editing charts. Defaults to true. | Optional |
download_data | Boolean , If false, disables the download page and panel data in CSV and PDF formats. Defaults to true. | Optional |
edit_page | Boolean , If false, disables edit mode for the dashboard widget will be displayed and hides the “edit page” button in the floating three-dot menu. Defaults to true. | Optional |
remove_chart | Boolean , If false, users cannot remove charts from the page, when in edit mode. Defaults to true. | Optional |
rearrange_chart | Boolean , If false, users cannot rearrange the chart panels, when in edit mode. Defaults to true. | Optional |
Styles
In the Dashboard View widget, you can override CSS settings for white-labeling purposes. When using the styles
object, house the properties inside the pageView
object. For example:
styles: {
pageView: {
canvasTextFontFamily: 'Roboto, sans-serif',
canvasTextFontSize: '12px',
...
}
}
The following table describes the properties of the styles
object.
Property | Values | Target |
---|---|---|
canvasButtonBackgroundColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | button |
canvasButtonFontColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | button |
canvasDatepickerFontFamily | Groups of values: 'Roboto, sans-serif' 'Georgia, serif' 'Palatino Linotype, Book Antiqua, Palatino, serif' 'Times New Roman, Times, serif' 'Arial, Helvetica, sans-serif' 'Arial Black, Gadget, sans-serif' 'Comic Sans MS, cursive, sans-serif' 'Impact, Charcoal, sans-serif' 'Lucida Sans Unicode, Lucida Grande, sans-serif' 'Tahoma, Geneva, sans-serif' 'Trebuchet MS, Helvetica, sans-serif' 'Verdana, Geneva, sans-serif' 'Courier New, Courier, monospace' 'Lucida Console, Monaco, monospace' | datepicker |
canvasDatepickerFontColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | datepicker |
canvasDatepickerIconSelectorsColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | datepicker |
canvasValuelistFontFamily | Groups of values: 'Roboto, sans-serif' 'Georgia, serif' 'Palatino Linotype, Book Antiqua, Palatino, serif' 'Times New Roman, Times, serif' 'Arial, Helvetica, sans-serif' 'Arial Black, Gadget, sans-serif' 'Comic Sans MS, cursive, sans-serif' 'Impact, Charcoal, sans-serif' 'Lucida Sans Unicode, Lucida Grande, sans-serif' 'Tahoma, Geneva, sans-serif' 'Trebuchet MS, Helvetica, sans-serif' 'Verdana, Geneva, sans-serif' 'Courier New, Courier, monospace' 'Lucida Console, Monaco, monospace' | valuelist |
canvasValuelistFontColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | valuelist |
canvasValuelistIconSelectorsColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | valuelist |
canvasTextFontFamily | Groups of values: , sans-serif' 'Georgia, serif' 'Palatino Linotype, Book Antiqua, Palatino, serif' 'Times New Roman, Times, serif' 'Arial, Helvetica, sans-serif' 'Arial Black, Gadget, sans-serif' 'Comic Sans MS, cursive, sans-serif' 'Impact, Charcoal, sans-serif' 'Lucida Sans Unicode, Lucida Grande, sans-serif' 'Tahoma, Geneva, sans-serif' 'Trebuchet MS, Helvetica, sans-serif' 'Verdana, Geneva, sans-serif' 'Courier New, Courier, monospace' 'Lucida Console, Monaco, monospace' | textbox |
canvasTextFontWeight | All CSS supported values (names of numbers) 'bold', 'bolder', 200, 400 | textbox |
canvasTextFontSize | All CSS supported values '10px', '10em', '10rem', '10%', 'large', 'small' | textbox |
canvasTextFontColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | textbox |
canvasTextBackgroundColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | textbox |
canvasTextAlign | right, 'center', 'left' | textbox |
canvasImageAspect | ‘cover’, ‘contain’, ‘fill’ | image |
navigationBackgroundColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | navigation bar |
navigationElementsColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | navigation bar |
tabsBackgroundColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | tabs bar |
tabsFontColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | tabs bar |
tabsBorderColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | tabs bar |
tabSize | All CSS supported values'10px', '10em', '10rem', '10%' | tabs bar |
selectedTabBarColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | tabs bar |
canvasBackgroundColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | page |
pageViewButtonBackgroundColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | floating button (bottom right) |
pageViewButtonIconColor | All CSS supported values (color names or Hex), '#000000', 'green', 'GREEN' | floating button (bottom right) |
Events
The widget supports custom events to update keys of the configuration, you can dispatch an event using your own user interface to modify the behavior.
atApplyUserFilters()
— Enables changes to theuserFilters
property.window.dispatchEvent(new CustomEvent('atApplyUserFilters', {detail: userFilters}));